package com.healthyeating.manage.domain;

import com.healthyeating.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 食谱评论对象 tb_recipe_comment
 *
 * @author 段奇乐
 * @date 2025-03-26
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RecipeComment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 评论表主键id，自增
     */
    private Long commentId;

    /**
     * 上级id
     */
    private Long parentId;

    /**
     * 一级评论id
     */
    private Long topId;

    /** 所属分享id */
    private Long recipeId;

    /**
     * 评论内容
     */
    private String commentBody;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 回复的用户ID
     */
    private Long toUserId;

    /** IP */
    private String ipAddr;
}
